export interface TWorkSerialGroupSon {
  id?: number;
  /**
   * 工序id
   */
  processGroupId?: number;
  /**
   * 排序
   */
  sort?: number;
  uuid?: any;
  processGroupData?: any;
}
export interface TWorkSerialGroup {
  sort?: any;
  uuid?: any;
  id?: number;
  /**
   * 工序编码
   */
  processCode?: string;
  /**
   * 工序名称
   */
  processName?: string;
  /**
   * 生产方法
   */
  productionMethod?: string;
  set?: TWorkSerialGroupSon[];
  /**
   * 是否启用
   */
  state?: number;
  processType?: string;
  operateType?: string;
  type?: number;
  isReportingWork?: number;
  remark?: string;
}

export interface TGroupSet {
  uuid?: string;
  processType?: string;
  id?: number;
  /**
   * 是否报工
   */
  isReportingWork?: number;
  /**
   * 工序名称
   */
  processName?: string;
  /**
   * 生产方式
   */
  productionMethod?: string;
  /**
   * 排序
   */
  sort?: number;
  operateType?: string;
  /**
   * 操作类型
   */
  type?: number;
}
export interface TGroupData {
  managementId?: number;
  id?: number;
  sort?: number;
  groupDataType?: number;
  uuid?: any;
  /**
   * 工序信息设置
   */
  groupSet: TGroupSet[];
  /**
   * 工序名称或组名称
   */
  name?: string;
  processGroupId?: number;
  /**
   * 工序类别
   */
  processType?: string;
  /**
   * 生产方式
   */
  productionMethod?: string;
  /**
   * 操作类型
   */
  type?: number;
}
export interface TProcessRoute {
  /**
   * 组
   */
  groupData?: TGroupData[];
  id?: number;
  /**
   * 路线编号
   */
  routerCode?: string;
  /**
   * 路线说明
   */
  routerInstructions?: string;
  /**
   * 路线名称
   */
  routerName?: string;
  /**
   * 是否启用 1：是2否
   */
  state?: number;
}
export interface TProductProcessRoute {
  /**
   * 组
   */
  routerName?: string;
  groupData?: TGroupData[];
  id?: number;
  history?: number;
  /**
   * 工艺路线
   */
  productId?: number;
}

export interface TSop {
  fileName?: string;
  fileRemark?: string;
  id?: number;
  setId?: number;
}

export interface TProductBomDetail {
  productId?: number;
  id?: number;
  bomId?: number;
  dosage?: number;
  materialProperty?: string;
  substituteMaterial?: string;
  wastage?: number;
  productBomDetail?: any;
  bomDetailId?: number;
  productGroupData?: {
    productGroupId: number;
    bomDetailId?: number;
    sortIndex?: number;
    dosage?: number;
  }[];
}
export interface TbomBase {
  bomName?: string;
  bomCode?: string;
  bomEdition?: string;
  productBomDetail?: TProductBomDetail[];
  productId?: number;
  state?: number;
  id?: number;
  historyState?: number;
  management?: any;
  materialProperty?: number;
}

export interface TWorkshop {
  /**负责人id*/
  chargeId?: number;
  code?: string;
  /**启用 */
  enable?: number;
  foundId?: number;
  id?: number;
  name?: string;
  remark?: string;
  /**部分id */
  sectionId?: number;
  peakLoad?: number;
  middleLoad?: number;
  spareLoad?: number;
  unitCapacity?: number;
}

export interface Tstation {
  /**启用 */
  enable?: number;
  id?: number;

  /**产线 */
  lineId?: number;
  workShopId?: number;
  remark?: string;
  stationCode?: string;
  stationName?: string;
  lineName?: string;
  peakLoad?: number;
  middleLoad?: number;
  spareLoad?: number;
  unitCapacity?: number;
}

export interface TProductionLine {
  chargeId?: number;
  enable?: number;
  foundId?: number;
  id?: number;
  lineCode?: string;
  lineName?: string;
  remark?: string;
  workshopId?: number;
  workshopName?: string;
  peakLoad?: number;
  middleLoad?: number;
  spareLoad?: number;
  unitCapacity?: number;
}

export interface TFactorySet {
  /**
   * 设备
   */
  equipmentId?: number;
  /**
   * 产线
   */
  lineId?: number;
  /**
   * 工序
   */
  processGroupId?: number;
  /**
   * 工位
   */
  stationId?: number;
  /**
   * 类别'1:工位工序 2产线工序 3工序设备',
   */
  type?: number;
  processGroupld?: number;
  workShopId?: number;
}
